package com.jiaai.cloud.wx.entity;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-28
 */
@TableName("t_pay")
public class TPay extends Model<TPay> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd")
	private Date createdate;
    /**
     * 员工的id
     */
	private String empid;
    /**
     * 转账的状态 0:待处理 1:正在转账  2:转账成功 3:转账失败
     */
	private Integer status;
    /**
     * 支付宝转账反馈信息
     */
	private String feedback;
    /**
     * 转账数额
     */
	private String payamount;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public String getEmpid() {
		return empid;
	}

	public void setEmpid(String empid) {
		this.empid = empid;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getFeedback() {
		return feedback;
	}

	public void setFeedback(String feedback) {
		this.feedback = feedback;
	}

	public String getPayamount() {
		return payamount;
	}

	public void setPayamount(String payamount) {
		this.payamount = payamount;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

	/**
	 * 逻辑删除 1:已删除 0:未删除
	 */
	private Integer deleted;

	public String getEmppayname() {
		return emppayname;
	}

	public void setEmppayname(String emppayname) {
		this.emppayname = emppayname;
	}

	/**
	 * 工资对应的员工名称
	 */
	@TableField(exist = false)
	private String emppayname;

}
